import type { CouponListData } from '@/types/api'

interface FetchClaimCouponListAPIResData {
  code: number
  msg: string
  time: string
  data: CouponListData
}

export function fetchClaimCouponListAPI(token: string) {
  return httpInstance.get<FetchClaimCouponListAPIResData>(
    '/api/coupon/index',
    { headers: { token } },
  )
}
